import { axios } from "../../utils/request";

const api = {
    List: "/crm/phrase/list",
    BatchSave: "/crm/phrase/batchSave",
    BatchDelete: "/crm/phrase/batchDelete",
};

/**
 * 列表
 */
export function List(parameter) {
  return axios({
    url: api.List,
    method: "get",
    params: parameter
  });
}

/**
 * 批量保存
 */
export function BatchSave(data) {
    return axios({
      url: api.BatchSave,
      method: "post",
      data: data
    });
  }

/**
 * 批量删除
 * @param {*} parameter 
 */
export function BatchDelete(parameter) {
    return axios({
        url: api.BatchDelete,
        method: "DELETE",
        params: parameter
    });
};